home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 64
/
Volume 64 - JOGO DISK .iso
/
Games
/
skecthpad.swf
/
scripts
/
frame_35
/
DoAction.as
< prev
Wrap
Text File
|
2008-04-25
|
3KB
|
89 lines
function stopCirkel()
{
_root.createEmptyMovieClip("drawline" + _root.pencil.symbolnumber,_root.pencil.symbolnumber);
with(_root.pencil)
{
circcenterX = circstartx;
circcenterY = circstarty;
circstraal = circposx - circstartx;
circalpha = 0.7853981633974483;
circcontrStraal = circstraal / Math.cos(circalpha / 2);
_root["drawline" + symbolnumber].lineStyle(_root.setthickness,_root.setcolor,_root.setopacity);
_root["drawline" + symbolnumber].moveTo(circcenterX + circstraal,circcenterY);
circhoek = 0;
i = 0;
while(i < 8)
{
circhoek += circalpha;
circhoekMid = circhoek - circalpha / 2;
circcx = circcenterX + Math.cos(circhoekMid) * circcontrStraal;
circcy = circcenterY + Math.sin(circhoekMid) * circcontrStraal;
circpx = circcenterX + Math.cos(circhoek) * circstraal;
circpy = circcenterY + Math.sin(circhoek) * circstraal;
_root["drawline" + symbolnumber].curveTo(circcx,circcy,circpx,circpy);
if(circpy <= 110 + _root.setthickness * 2)
{
circelling = false;
}
else if(circpy >= 440 - _root.setthickness * 2)
{
circelling = false;
}
else if(circpx <= 130 + _root.setthickness * 2)
{
circelling = false;
}
else if(circpx >= 680 - _root.setthickness * 2)
{
circelling = false;
}
i++;
}
}
}
function stopCirkel2()
{
_root.createEmptyMovieClip("drawline" + _root.pencil.symbolnumber,_root.pencil.symbolnumber);
with(_root.pencil)
{
circcenterX = circstartx;
circcenterY = circstarty;
circstraal = circposx - circstartx;
circalpha = 0.7853981633974483;
circcontrStraal = circstraal / Math.cos(circalpha / 2);
_root["drawline" + symbolnumber].beginFill(_root.setcolor,_root.setopacity);
_root["drawline" + symbolnumber].lineStyle(1,0,0);
_root["drawline" + symbolnumber].moveTo(circcenterX + circstraal,circcenterY);
circhoek = 0;
i = 0;
while(i < 8)
{
circhoek += circalpha;
circhoekMid = circhoek - circalpha / 2;
circcx = circcenterX + Math.cos(circhoekMid) * circcontrStraal;
circcy = circcenterY + Math.sin(circhoekMid) * circcontrStraal;
circpx = circcenterX + Math.cos(circhoek) * circstraal;
circpy = circcenterY + Math.sin(circhoek) * circstraal;
_root["drawline" + symbolnumber].curveTo(circcx,circcy,circpx,circpy);
if(circpy <= 110 + _root.setthickness * 2)
{
circelling = false;
}
else if(circpy >= 440 - _root.setthickness * 2)
{
circelling = false;
}
else if(circpx <= 130 + _root.setthickness * 2)
{
circelling = false;
}
else if(circpx >= 680 - _root.setthickness * 2)
{
circelling = false;
}
i++;
}
_root["drawline" + symbolnumber].endFill();
}
}